<?php

Route::post('login','AuthController@login');//登录
Route::get ('logout','AuthController@logout');//退出
Route::get ('captcha','AuthController@captcha');//验证码

Route::group(['middleware' => 'auth:api'], function(){

    Route::group(['prefix' => 'user'], function(){
        Route::get('/','UserController@index');//用户列表
        Route::get('all','UserController@all');//销售人员
        Route::get('info','UserController@info');//用户信息
        Route::post('update','UserController@update');//用户更新
        Route::delete('destroy','UserController@destroy');//用户删除
    });

    Route::group(['prefix' => 'ad'], function(){
        Route::get('/','AdController@index');//广告列表
        Route::post('store','AdController@store');//广告新增
        Route::post('update','AdController@update');//广告更新
        Route::delete('destroy','AdController@destroy');//广告删除
    });







});
